package com.example.b_308.myapplication.controller;

import android.content.Intent;

import com.example.b_308.myapplication.comment.utils.JsonUtils;
import com.example.b_308.myapplication.controller.base.BaseController;
import com.example.b_308.myapplication.model.Department;
import com.example.b_308.myapplication.view.user.register.createdepartment.IRegisterView;

import java.util.ArrayList;
import java.util.List;
import java.util.zip.Inflater;

/**
 * Created by B-308 on 2017/11/22.
 */
public class RegisterController extends BaseController {
    IRegisterView iRegisterView;
    Inflater inflater;

    public RegisterController(IRegisterView iRegisterView) {
        this.iRegisterView = iRegisterView;
    }

    public void getList(){
        iRegisterView.onRequestListSuccess(paraseList());
    }
    private List<Department> paraseList(){
        List<Department> departmentList = new ArrayList();
        Department department;
        department = new Department(JsonUtils.tToJson("data"));

        departmentList.add(department);

        return departmentList;
    }
}
